.class public Lcom/melesta/payment/listeners/ListenersMixer;
.super Ljava/lang/Object;
.source "ListenersMixer.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/IListener;


# instance fields
.field private final listeners:[Lcom/melesta/payment/interfaces/IListener;


# direct methods
.method public constructor <init>([Lcom/melesta/payment/interfaces/IListener;)V
    .locals 0
    .parameter "listeners"

    .prologue
    .line 9
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 10
    iput-object p1, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .line 11
    return-void
.end method


# virtual methods
.method public onCancel(Ljava/lang/String;)V
    .locals 4
    .parameter "name"

    .prologue
    .line 27
    iget-object v0, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .local v0, arr$:[Lcom/melesta/payment/interfaces/IListener;
    array-length v3, v0

    .local v3, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v3, :cond_0

    aget-object v2, v0, v1

    .line 28
    .local v2, l:Lcom/melesta/payment/interfaces/IListener;
    invoke-interface {v2, p1}, Lcom/melesta/payment/interfaces/IListener;->onCancel(Ljava/lang/String;)V

    .line 27
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 29
    .end local v2           #l:Lcom/melesta/payment/interfaces/IListener;
    :cond_0
    return-void
.end method

.method public onError(Ljava/lang/String;ILjava/lang/String;)V
    .locals 4
    .parameter "name"
    .parameter "errorCode"
    .parameter "error"

    .prologue
    .line 21
    iget-object v0, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .local v0, arr$:[Lcom/melesta/payment/interfaces/IListener;
    array-length v3, v0

    .local v3, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v3, :cond_0

    aget-object v2, v0, v1

    .line 22
    .local v2, l:Lcom/melesta/payment/interfaces/IListener;
    invoke-interface {v2, p1, p2, p3}, Lcom/melesta/payment/interfaces/IListener;->onError(Ljava/lang/String;ILjava/lang/String;)V

    .line 21
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 23
    .end local v2           #l:Lcom/melesta/payment/interfaces/IListener;
    :cond_0
    return-void
.end method

.method public onPurchase(Ljava/lang/String;IJ)V
    .locals 4
    .parameter "name"
    .parameter "count"
    .parameter "internalId"

    .prologue
    .line 15
    iget-object v0, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .local v0, arr$:[Lcom/melesta/payment/interfaces/IListener;
    array-length v3, v0

    .local v3, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v3, :cond_0

    aget-object v2, v0, v1

    .line 16
    .local v2, l:Lcom/melesta/payment/interfaces/IListener;
    invoke-interface {v2, p1, p2, p3, p4}, Lcom/melesta/payment/interfaces/IListener;->onPurchase(Ljava/lang/String;IJ)V

    .line 15
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 17
    .end local v2           #l:Lcom/melesta/payment/interfaces/IListener;
    :cond_0
    return-void
.end method

.method public onRefund(Ljava/lang/String;)V
    .locals 4
    .parameter "name"

    .prologue
    .line 39
    iget-object v0, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .local v0, arr$:[Lcom/melesta/payment/interfaces/IListener;
    array-length v3, v0

    .local v3, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v3, :cond_0

    aget-object v2, v0, v1

    .line 40
    .local v2, l:Lcom/melesta/payment/interfaces/IListener;
    invoke-interface {v2, p1}, Lcom/melesta/payment/interfaces/IListener;->onRefund(Ljava/lang/String;)V

    .line 39
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 41
    .end local v2           #l:Lcom/melesta/payment/interfaces/IListener;
    :cond_0
    return-void
.end method

.method public onSent(Ljava/lang/String;)V
    .locals 4
    .parameter "name"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .local v0, arr$:[Lcom/melesta/payment/interfaces/IListener;
    array-length v3, v0

    .local v3, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v3, :cond_0

    aget-object v2, v0, v1

    .line 34
    .local v2, l:Lcom/melesta/payment/interfaces/IListener;
    invoke-interface {v2, p1}, Lcom/melesta/payment/interfaces/IListener;->onSent(Ljava/lang/String;)V

    .line 33
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 35
    .end local v2           #l:Lcom/melesta/payment/interfaces/IListener;
    :cond_0
    return-void
.end method

.method public updateSkuDetails(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .parameter "name"
    .parameter "price"
    .parameter "title"

    .prologue
    .line 45
    iget-object v0, p0, Lcom/melesta/payment/listeners/ListenersMixer;->listeners:[Lcom/melesta/payment/interfaces/IListener;

    .local v0, arr$:[Lcom/melesta/payment/interfaces/IListener;
    array-length v3, v0

    .local v3, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v3, :cond_0

    aget-object v2, v0, v1

    .line 46
    .local v2, l:Lcom/melesta/payment/interfaces/IListener;
    invoke-interface {v2, p1, p2, p3}, Lcom/melesta/payment/interfaces/IListener;->updateSkuDetails(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 45
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 47
    .end local v2           #l:Lcom/melesta/payment/interfaces/IListener;
    :cond_0
    return-void
.end method
